package com.skywolf.chem.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skywolf.chem.article.entity.Position;
import com.skywolf.chem.pageconfig.entity.ColumnInfo;
import com.skywolf.chem.pageconfig.pojo.param.AticleParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2020-06-09
 */
@Mapper
public interface PositionMapper extends BaseMapper<Position> {

    List<AticleParam> getColAticle(@Param("colId")Long colId,@Param("newCount")Integer newCount);

    ColumnInfo getColByAticleId(@Param("articleId")Long articleId);

    int deletePosition(@Param("articleId")Long articleId);
}
